package com.lyj.linearalgebra.comment.service;

import java.util.List;

import com.lyj.linearalgebra.comment.dao.CommentDao;
import com.lyj.linearalgebra.comment.domain.Comment;
import com.lyj.linearalgebra.comment.domain.Comments;

public class CommentService {
	
	private CommentDao commentDao = new CommentDao();

	public List<Comments> findAll(String pid) {
		return commentDao.findAll(pid);
		
	}

	public void addComment(Comment form) {
		commentDao.addComment(form);
	}
}
